-- GENERATED SPELL FOR [Aspect of Malice] --


function spell0_14520(pUnit, Event) --@Curse of Blood,n/a--
pUnit:FullCastSpellOnTarget(16098,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14520', 2000, 1)
end

function spell1_14520(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(13738,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14520', 15000, 1)
end

function Sorts_14520(pUnit, Event)
local choix_sorts_14520 = math.random(0, 1)
if choix_sorts_14520 == 0 then
pUnit:RegisterEvent('spell0_14520', 1, 1)
end
if choix_sorts_14520 == 1 then
pUnit:RegisterEvent('spell1_14520', 1, 1)
end
end

function mob14520_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_14520', math.random(1500, 3000), 1)
end

function mob14520_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14520_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14520_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(14520, 1, 'mob14520_Action')
RegisterUnitEvent(14520, 2, 'mob14520_Leave')
RegisterUnitEvent(14520, 3, 'mob14520_Kill')
RegisterUnitEvent(14520, 4, 'mob14520_Die')
